home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds / fsmakedev.man < prev    next >
Text File  |  1992-08-26  |  2KB  |  49 lines

  1. ' $Header: /sprite/src/cmds/fsmakedev/RCS/fsmakedev.man,v 1.1 90/11/23 21:23:22 shirriff Exp Locker: shirriff $ SPRITE (Berkeley)
  2. .so \*(]ltmac.sprite
  3. .HS FSMAKEDEV cmds
  4. .BS
  5. .SH NAME
  6. fsmakedev \- Create a device file
  7. .SH SYNOPSIS
  8. \fBfsmakedev\fR [\fB-s\fI serverID\fR] [\fB-d\fI devType\fR] [\fB-u\fI unit\fR] [\fB-p\fI mode\fR] name
  9. .SH "OPTIONS"
  10. .IP "\fB\-s \fIserverID\fR" 14
  11. The serverID is needed for devices attached to a particular host.  If not
  12. specified then the device created is a \fIcommon\fP device found on all hosts
  13. and the local instance of the device is used.  The serverID is a numeric
  14. hostID, not a name.
  15. .IP "\fB\-d\fI devType\fR" 14
  16. This specifies the type of the device.  This is a numeric value found in
  17. /sprite/src/kernel/dev/*.md/devTypesInt.h
  18. .IP "\fB\-u\fI unit\fR" 14
  19. The unit number of the device.
  20. .IP "\fB\-p\fI mode\fR" 14
  21. This specifies the permission bits of the device file.
  22. .IP "\fIname\fR" 14
  23. This is the name of the device.
  24. .BE
  25.  
  26. .SH DESCRIPTION
  27. .PP
  28. Fsmakedev creates a special device file that is a placeholder for
  29. a peripheral device.  The device file indicates the device type
  30. and a unit number.  It also indicates the location of the device.
  31. In Sprite devices are either \fIcommon\fP,
  32. which means that all hosts have them, or they are specific to a
  33. particular host.  When a common device is opened then the device
  34. attached to the local host is used.  Otherwise the serverID in the
  35. device file indicates where the device is.  The default is for
  36. a common device file to be created.  Use the \fB-s\fP option to
  37. specific the serverID for devices attached to a particular host.
  38. By convention common devices are found in the /dev directory,
  39. and specific devices are in the /hosts/\fIhostname\fP/dev directory.
  40. .SH BUGS
  41. .PP
  42. The device type is a magic number found in the
  43. /sprite/src/kernel/dev/*.md/devTypesInt.h file.
  44. The serverID is a numeric hostID, not a hostname.
  45. .SH SEE ALSO
  46. fsmakenetdev
  47. .SH KEYWORDS
  48. device
  49.